import allure
import pytest
from common.logger import *

# @decorate_log
def assert_api(actual_data,expect_data):
    Logger.info("**********{}开始执行用例**********".format(expect_data['info']))
    try:
        assert actual_data['code'] == expect_data['code']
        assert actual_data['msg'] == expect_data['msg']
    except AssertionError as e:
        Logger.error('**********>{}用例执行未通过**********'.format(expect_data['info']))
        raise e